package com.pyb.module.live.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

public class VideoEntity implements MultiItemEntity {
    private String url;
    private boolean isPlay;
    private int itemType = -1;//-1 无数据  其他正常

    public VideoEntity(String url,boolean isPlay,int itemType){
        this.url = url;
        this.itemType = itemType;
        this.isPlay = isPlay;
    }

    public String getUrl() {
        return url == null ? "" : url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isPlay() {
        return isPlay;
    }

    public void setPlay(boolean play) {
        isPlay = play;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

}
